/*
 * Copyright (C) 2020 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.jc.camerascan.entity.login;

/**
 * @ProjectName: PhotoRecognition
 * @Package: com.jc.camerascan.entity
 * @ClassName: WxLoginBean
 * @Description: java类作用描述
 * @Author: XuChi
 * @CreateDate: 2020/7/17 18:19
 * @Version: 1.0
 */
public class WxLoginBean {


    /**
     * userBody : {"openid":"string","app_openid":"string","app_id":0,"id":0,"nickname":"string","user_phone":"string","headimgurl":"string","sex":0}
     * token : string
     * isNewUser : true
     */

    private UserBodyBean userBody;
    private String token;
    private boolean isNewUser;

    public UserBodyBean getUserBody() {
        return userBody;
    }

    public void setUserBody(UserBodyBean userBody) {
        this.userBody = userBody;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public boolean isIsNewUser() {
        return isNewUser;
    }

    public void setIsNewUser(boolean isNewUser) {
        this.isNewUser = isNewUser;
    }

    public static class UserBodyBean {
        /**
         * openid : string
         * app_openid : string
         * app_id : 0
         * id : 0
         * nickname : string
         * user_phone : string
         * headimgurl : string
         * sex : 0
         */

        private String openid;
        private String app_openid;
        private int app_id;
        private int id;
        private String nickname;
        private String user_phone;
        private String headimgurl;
        private int sex;

        public String getOpenid() {
            return openid;
        }

        public void setOpenid(String openid) {
            this.openid = openid;
        }

        public String getApp_openid() {
            return app_openid;
        }

        public void setApp_openid(String app_openid) {
            this.app_openid = app_openid;
        }

        public int getApp_id() {
            return app_id;
        }

        public void setApp_id(int app_id) {
            this.app_id = app_id;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getUser_phone() {
            return user_phone;
        }

        public void setUser_phone(String user_phone) {
            this.user_phone = user_phone;
        }

        public String getHeadimgurl() {
            return headimgurl;
        }

        public void setHeadimgurl(String headimgurl) {
            this.headimgurl = headimgurl;
        }

        public int getSex() {
            return sex;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }
    }
}
